<template>
  <div id='loading' class="dis-flex flex-x-center flex-y-center">
    <van-loading v-if="loading" type="spinner" size="18px"   />
  </div>
</template>

<script>
export default {
  props: ['loading'], // 父辈向子辈传参
  name: 'loading',
  components: { // 组件的引用

   },
  data () {
    return {

    }
  },
  methods: {},
  computed: {},
  watch: {},
  created () {},
  mounted () {},
}
</script>
    
<style scoped lang='scss'>
    #loading{
        padding: 10px 0;
    }
</style>